import {Component} from "react";
import {Text, View} from "@tarojs/components";

export default class MenusItem extends Component {
  constructor(props) {
    super(props);

  }
  render() {
    const {item} = this.props
    return (
      <View className='items'>
        <View className='icon' style={{background: item.color}}></View>
        <Text>{item.name}</Text>
      </View>
    )
  }
}
